<template>
  <div>
    <TypeNav />
    <ListContainer />
    <TodayRecommend/>
    <Rank/>
    <Like/>
    <Floor v-for="(item,index) in floor" :key="index" :floor="item"  :index="index"/>
    <Brand />
  </div>
</template>

<script>
import ListContainer from "./ListContainer";
import TodayRecommend from "./TodayRecommend";
import Brand from "./Brand";
import Floor from "./Floor";
import Like from "./Like";
import Rank from "./Rank";
import {mapState} from "vuex"

export default {
  name: "Home",
  computed:{
    ...mapState("home",["floor"])
  },
  components: {
    ListContainer,
    TodayRecommend,
    Brand,
    Floor,
    Like,
    Rank,
  },
  mounted(){
    this.$store.dispatch("home/asyncGetFloorList");
  }
};
</script>

